#define _CRT_SECURE_NO_WARNINGS 1
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
    bool kLengthApart(vector<int>& nums, int k)
    {
        int count = 0;
        int i = 0;
        for (;i < nums.size();i++)
        {
            if (nums[i] == 1) break;
        }
        ++i;
        for (;i < nums.size();i++)
        {
            if (nums[i] == 0) count++;
            if (nums[i] == 1)
            {
                cout << count << endl;
                if (count < k) return false;
                else count = 0;
            }
        }
        return true;
    }
};